import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Home',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('@views/home.vue'),
  },
  {
    path: '/vuex',
    name: 'Vuex',
    component: () => import('@views/vuex.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router